//
//  XLECGView.h
//  xinLing
//
//  Created by 于鹏 on 2017/7/8.
//  Copyright © 2017年 YIVIEW. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HeartLive.h"
#define EcgWaveLength 250
#define RespWaveLength 125
#define maxECGCount EcgWaveLength*3  //750
#define maxRESPCount RespWaveLength*6 //750
#define maxSPO2Count RespWaveLength*3 //375

//#define XLECGViewBGCOLOR [UIColor whiteColor]
#define XLECGViewBGCOLOR [UIColor blackColor]
#define CurveStrokeColorOfGreen [UIColor greenColor]
#define CurveStrokeColorOfRed [UIColor redColor]
#define CurveStrokeColorOfYellow [UIColor yellowColor]

#define DefaultTextColor [UIColor whiteColor]
@interface XLECGView : UIView
@property (nonatomic, strong)HeartLive *refreshMoniterView;//波形图
@property (nonatomic, strong)UILabel *des1Label;//描述
@property (nonatomic, strong)UILabel *des2Label;//描述

@property (nonatomic, strong)NSMutableArray *ecgDataSource;



@property (nonatomic, assign)NSInteger maxContainerCapacity;
@property (nonatomic, strong)UIColor *curveStrokeColor;

- (void)createWorkDataSourceWithTimeInterval:(NSTimeInterval )timeInterval;

- (void)invalidTimer;

@end
